package com.wva.video.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hong
 * @since 2025-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("video")
@ApiModel(value="Video对象", description="")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Video implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "视频状态")
    private Integer status;

    @ApiModelProperty(value = "视频不通过的原因")
    private String reason;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "展示策略。0公开，1私有，2仅粉丝可见")
    private Integer showStrategy;

    @ApiModelProperty(value = "所属分类的id")
    private Integer categoryId;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "用户更新视频的时间")
    private LocalDateTime updateTimeUser;

    @ApiModelProperty(value = "发布者用户id")
    private Long userId;

    @ApiModelProperty(value = "类型，0原创，1转载")
    private Integer type;

    @ApiModelProperty(value = "转载链接")
    private String repostUrl;

    @ApiModelProperty(value = "标签最后更新时间")
    private LocalDateTime tagsUpdateTime;

    @ApiModelProperty(value = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记")
    private Integer delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;
}
